package com.csii.pos.activiti.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.csii.pos.uofplan.UofPlanPo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: ActivitiUofPlanMapper
 * @Author: zhanghao
 * @description: 业务审批流mapper层
 * @Date: 2021/7/27 9:32
 * @Version: 1.0
 */
public interface ActivitiUofPlanMapper {


    void updateStatusById(Map<String, Object> map);

//    IPage<UofPlanPo> findAllInfo(@Param("page") Page<UofPlanPo> page,@Param("ids") List<String> ids);

    IPage<UofPlanPo> findAllInfo(Page<UofPlanPo> page, @Param("ids") List<String> ids, @Param("uofPlanPo") UofPlanPo uofPlanPo);

    //更新部门领导审批意见、审批人和结果
    void updateLeaderDescById(Map<String, Object> map);

    //更新分管领导审批意见、审批人和结果
    void updateFinanceDescById(HashMap<String, Object> map);

    //更新总经理审批意见、审批人和结果
    void updateBossDescById(HashMap<String, Object> map);

    String getApproveStage(@Param("id") Long id);

    void clearInfo(@Param("id") Long id);


}
